﻿/*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace Blox
{
    public class GameMouse
    {
        ContentManager content;

        public Vector2 Position = Vector2.Zero;
        private Texture2D Texture { get; set; }
        private Vector2 CenterPoint = Vector2.Zero;
        public MouseState State { get; set; }
        public MouseState PreviousState { get; set; }

        //Returns true if left button is pressed (true as long as you hold button)
        public Boolean LeftDown
        {
            get { return State.LeftButton == ButtonState.Pressed; }
        }

        //Returns true if left button has been pressed since last update (only once per click)
        public Boolean LeftPressed
        {
            get
            {
                return (State.LeftButton == ButtonState.Pressed) &&
                    (PreviousState.LeftButton == ButtonState.Released);
            }
        }

        //Initialize texture and states.
        public GameMouse(Texture2D texture, Vector2 centerPoint, ContentManager mgr)
        {
            content = mgr;
            Texture = content.Load<Texture2D>("Textures\\crosshair");
            //Texture = texture;
            CenterPoint = centerPoint;
            State = Mouse.GetState();

            //Calling Update will set previousstate and update Position.
            Update();
        }

        public void Update()
        {
            PreviousState = State;
            State = Mouse.GetState();
            Position.X = State.X;
            Position.Y = State.Y;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(Texture, Position - CenterPoint, Color.White);
            spriteBatch.End();
        }
    }
}
*/